package ge.modules.events;

import ge.lowlevel.CollisionEngine;
import ge.lowlevel.Vector;
import ge.modules.logics.GeomCollideFigure;

import java.util.ArrayList;

public class CollisionModule extends EventModule {

	static public final int CAMERA = -1;
	//static private CollisionModule instance;
	public CollisionModule()
	{
		super();
		attachMethod("collide");
	}
	
	
	/*public static CollisionModule get()
	{
		if(instance == null)
			instance = new CollisionModule();
		
		return instance;
	}*/
	/**
	 * 	Makes a collision test with the figure and all the figures attached in Collion Engine.
	 * @param figure	Figure to be tested
	 * @param id	id of the kind of figures you want to make the test. Value 0 means all of them.
	 * @return	ArrayList<> with the collide vectors information
	 */
	public ArrayList<Vector> collide(GeomCollideFigure figure, int id)
	{
		return CollisionEngine.get().collide(figure, id);
	}
	@Override
	public void update() {
	}

	@Override
	public void draw() {
		
	}
	@Override
	public void delete()
	{
		
	}

}
